package cn.bdqn.asecu.service;

import cn.bdqn.pojo.Role;
import cn.bdqn.pojo.Type;
import cn.bdqn.repository.Asecu_ProjectTypeRepository;
import cn.bdqn.repository.Asecu_RoleRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AsecuRoleService {

    @Resource
    Asecu_RoleRepository asecu_roleRepository;
    /**
     * 获取角色
     * @return
     */
    public List<Role> getRole() {
        List list = asecu_roleRepository.findAllByIdNot(1);
        return list;
    }
}
